<?php

class App_Forms_SearchForm extends Zend_Form
{
	public function __construct() {
		$this->setMethod('post');
		$this->setAction('../album');
		$nameField = new Zend_Form_Element_Text('name');
		$nameField->setLabel('Name');
		$nameField->setAttrib('id', 'nameField');
		
		$valField = new Zend_Form_Element_Text('value');
		$valField->setLabel('Value');
		$valField->setAttrib('id', 'valField');
		
		$submit = new Zend_Form_Element_Submit('Search');
		
		$this->addElements(array(
			$nameField,
			$valField,
			$submit
		));
		
		$this->setDecorators(array(
			'FormElements',
			array('HtmlTag', array('tag' => 'dl')),
			'Form'
		));
	}
}